﻿using SqlSugar;
using System;
using YNTK.Common.Const;
using YNTK.Common.Entity;

namespace YNTK.System.Entitys.Permission
{
    /// <summary>
    /// 组织开通记录实体
    /// </summary>
    [SugarTable("base_organizeopenrecords")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class OrganizeOpenRecordEntity : CLDEntityBase
    {
        /// <summary>
        /// 所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 服务类型(0.开通服务 1.服务到期 2.服务终止)
        /// </summary>
        [SugarColumn(ColumnName = "F_ServiceType")]
        public int ServiceType { get; set; }

        /// <summary>
        /// 开通/终止时间
        /// </summary>
        [SugarColumn(ColumnName = "F_OperatingTime")]
        public DateTime? OperatingTime { get; set; }

        /// <summary>
        /// 授权期限起
        /// </summary>
        [SugarColumn(ColumnName = "F_MandateStart")]
        public DateTime? MandateStart { get; set; }

        /// <summary>
        /// 授权期限止
        /// </summary>
        [SugarColumn(ColumnName = "F_MandateEnd")]
        public DateTime? MandateEnd { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "F_Description")]
        public string Description { get; set; }

        /// <summary>
        /// 授权TK码
        /// </summary>
        [SugarColumn(ColumnName = "F_AuthorizationCode")]
        public string AuthorizationCode { get; set; }
    }
}
